package com.buba.system.service.Impl;

import com.buba.system.pojo.Employee;
import com.buba.system.pojo.Page;
import com.buba.system.service.EmployeeService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("employeeServiceImpl")
public class EmployeeServiceImpl implements EmployeeService {
    @DubboReference
    private EmployeeService employeeService;

    @Override
    public Employee selEmployee(String employeeId) {
        return employeeService.selEmployee(employeeId);
    }

    @Override
    public Long selCountAll() {
        return employeeService.selCountAll();
    }

    @Override
    public List<Employee> selEmployeeAll(Page<Employee> page) {
        return employeeService.selEmployeeAll(page);
    }

    @Override
    public Long selCount(Map<String, Object> map) {
        return employeeService.selCount(map);
    }

    @Override
    public List<Employee> selAllEmployee(Map<String, Object> map) {
        return employeeService.selAllEmployee(map);
    }

    @Override
    public Integer addEmployee(Map<String, Object> map) {
        return employeeService.addEmployee(map);
    }

    @Override
    public long addJob(Map<String, Object> map) {
        return employeeService.addJob(map);
    }

    @Override
    public Integer delEmployee(List<String> list) {
        return employeeService.delEmployee(list);
    }

    @Override
    public Integer delEmployeeAll(List<String> list) {
        return employeeService.delEmployeeAll(list);
    }

    @Override
    public Integer updEmployee(Map<String, Object> map) {
        return employeeService.updEmployee(map);
    }


}
